package com.igd.security;

import java.util.Date;
import java.util.List;

import com.igd.pojo.vo.ComboxData;
import com.igd.utils.CommonUtil;
import com.igd.utils.DateUtil;

/**
 * @createDate 2013-6-23
 *
 * @author QIAOYU
 *
 * @version 1.0
 *
 * @description 平台资源信息数据类
 */

public class Resources {
	
	private String listKey = "resources.status.list";
	
	private String valKey = "resources.status";
	
	/**资源编号*/
	private String resId;
	
	/**资源名称*/
	private String resName;
	
	/**资源对应事件*/
	private String resAction;
	
	/**是否是节点资源*/
	private String resIsNode;
	
	/**资源节点编号*/
	private String resNodeNum;
	
	/**资源状态*/
	private String resStatus;
	
	private List<ComboxData> resStatusMapping = CommonUtil.toComboxList(listKey, valKey);
	
	/**资源备注*/
	private String resRemark;
	
	/**资源创建时间*/
	private String resCreateTime;
	
	/**格式化资源创建时间*/
	private Date resCreateTimeFormat;
	
	/**资源创建用户*/
	private String resCreateUser;

	/**资源对应的角色Id*/
	private String resRoleId;
	
	public String getResId() {
		return resId;
	}

	public void setResId(String resId) {
		this.resId = resId;
	}

	public String getResName() {
		return resName;
	}

	public void setResName(String resName) {
		this.resName = resName;
	}

	public String getResAction() {
		return resAction;
	}

	public void setResAction(String resAction) {
		this.resAction = resAction;
	}

	public String getResIsNode() {
		return resIsNode;
	}

	public void setResIsNode(String resIsNode) {
		this.resIsNode = resIsNode;
	}

	public String getResNodeNum() {
		return resNodeNum;
	}

	public void setResNodeNum(String resNodeNum) {
		this.resNodeNum = resNodeNum;
	}

	public String getResStatus() {
		return resStatus;
	}

	public void setResStatus(String resStatus) {
		this.resStatus = resStatus;
	}

	public String getResRemark() {
		return resRemark;
	}

	public void setResRemark(String resRemark) {
		this.resRemark = resRemark;
	}

	public String getResCreateTime() {
		return resCreateTime;
	}

	public void setResCreateTime(String resCreateTime) {
		
		this.resCreateTime = resCreateTime;
		
		this.setResCreateTimeFormat(DateUtil.formateStringToDate(resCreateTime,DateUtil.FORMAT_TO_14));
	}

	public String getResCreateUser() {
		return resCreateUser;
	}

	public void setResCreateUser(String resCreateUser) {
		this.resCreateUser = resCreateUser;
	}

	public String getResRoleId() {
		return resRoleId;
	}

	public void setResRoleId(String resRoleId) {
		this.resRoleId = resRoleId;
	}

	public Date getResCreateTimeFormat() {
		return resCreateTimeFormat;
	}

	public void setResCreateTimeFormat(Date resCreateTimeFormat) {
		this.resCreateTimeFormat = resCreateTimeFormat;
	}

	public List<ComboxData> getResStatusMapping() {
		return resStatusMapping;
	}

	public void setResStatusMapping(List<ComboxData> resStatusMapping) {
		this.resStatusMapping = resStatusMapping;
	}
}
